﻿using System.Drawing;

namespace DC2010.Logic
{
    public class Tools
    {
        public static bool IsPointInRectangle(Rectangle r, int X, int Y)
        {
            bool bResult = false;

            if ((r.X < X) && (r.X + r.Width > X))
            {
                if ((r.Y < Y) && (r.Y + r.Height > Y))
                {
                    return true;
                }
            }

            return bResult;
        }

    }
}
